package com.weixing.mall.provider.api.fallback;

import com.weixing.mall.base.wrapper.Result;
import com.weixing.mall.base.wrapper.ResultUtil;
import com.weixing.mall.provider.api.model.dto.SearchItem;
import com.weixing.mall.provider.api.model.vo.GoodsDetailsVo;
import com.weixing.mall.provider.api.model.vo.GoodsPlaceVo;
import com.weixing.mall.provider.api.model.vo.GoodsPointDetailsVo;
import com.weixing.mall.provider.api.service.GoodsFeign;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author: kfc
 * @Description: <br/>
 * Date:Create in 2019/10/9 15:50
 * @Modified By:
 */
@Component
public class GoodsFeignFallback implements GoodsFeign {
    @Override
    public Result<SearchItem> selectGoodsSearchVoByGoodsId(long goodsId) {
        return null;
    }

    @Override
    public Result<GoodsDetailsVo> selectGoodsDetails(Long goodsId) {
        return ResultUtil.error("服务不可用");
    }

    @Override
    public int selectMyGoodsHistory(Long memberId) {
        return 0;
    }

    @Override
    public int selectMyGoodsStore(Long memberId) {
        return 0;
    }

    @Override
    public Result<String> byGoodsIdImg(Integer goodsId) {
        return null;
    }

    @Override
    public Result<List<GoodsPlaceVo>> selectGoodsSearchVo(List<String> goodsSnList) {
        return null;
    }

    @Override
    public Result<String> selectCommodityCode(String goodsSn) {
        return ResultUtil.error("服务不可用");
    }

    @Override
    public Result<GoodsPointDetailsVo> selectGoodsPointByGoodsPointId(Long goodsPointId) {
        return ResultUtil.error("服务不可用");
    }
}
